home *** CD-ROM | disk | FTP | other *** search
- Path: news.ichange.com!newsmaster
- From: Jesse Liberty <jl@staff.ichange.com>
- Newsgroups: comp.lang.c++
- Subject: Re: what is the difference between object orientated programming and lets say C??
- Date: Thu, 21 Mar 1996 10:17:35 -0500
- Organization: AT&T
- Message-ID: <3151730F.606B@staff.ichange.com>
- References: <4iqbiq$1hb@atlas.uniserve.com>
- NNTP-Posting-Host: 140.244.99.60
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
- CC: jl@staff.ichange.com
-
- Michael Hutchison wrote:
- >...what exactly object orientated programming is.
-
- Well, this can be a matter of some debate, but I think most of us would agree that OO programming is characterized by:
-
- 1. A focus on objects -- programming constructs which include data and methods. That is, rather than thinking about data
- and what functions can be applied against that data, you think about objects and how they maintain change and report on their
- state.
-
- 2. Object oriented programming supports encapsulation and polymorphism. Encapsulation is the concept of an object being fully
- self-contained. The user of an object should understand what that object can do, but should not care about how that object
- does it. Polymorphism is the idea that you can ask an object to perform a general action and that action will be
- appropriately carried out based on the specific needs of that specific object. For example, you can ask a window to draw
- itself, and frame windows, dialog windows, text fields, buttons and so forth will each do the right thing based on their own
- specific (sub-type based) needs.
-
- You may want to get a good primer on C++ which introduces each of these concepts and then shows how they are implemented in
- C++.
-
- -j
-
- ------
- Jesse Liberty [AT&T New Media Services]
- jl@staff.ichange.com ZDNet: 72241,72
- Teach Yourself C++ In 21 Days. Sams 1994
- Teach Yourself MORE C++ In 21 Days. Sams 1996
- Teach Yourself ANSI C++ In 21 Days. Sams 1996
- C++: An Introduction To Programming. Que 1996
-